package com.freight.msg.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import com.freight.core.common.utils.SnowFlakeUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "msg_consulting_complaints")
@TableName("msg_consulting_complaints")
@ApiModel(value = "咨询与投诉信息")
public class MsgConsultingComplaints extends FreightBaseEntity {

    @ApiModelProperty(value = "工单类型 1咨询 2投诉")
    private String msgType;

    @ApiModelProperty(value = "用户类型 1司机 2货主 3游客 4车主 5个体户")
    private Integer type;

    @ApiModelProperty(value = "用户id")
    private Long userId;


    @ApiModelProperty(value = "问题数值")
    private String problemValue;

    @ApiModelProperty(value = "工单编号")
    private String consultingNo = String.valueOf(SnowFlakeUtil.nextId());

    @ApiModelProperty(value = "联系人名称")
    private String name;

    @ApiModelProperty(value = "联系人方式")
    private String phone;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "问题类型")
    private String problemType;

    @ApiModelProperty(value = "处理状态 1待处理 2处理中 3结束")
    private Integer handleState;


    @ApiModelProperty(value = "描述")
    private String describes;

    @ApiModelProperty(value = "图片id")
    private String describePicture;

    @ApiModelProperty(value = "评价星级 1-5星")
    private Integer level = 0;

}
